<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>学生列表</title>
</head>
    <table>
        <tr>
            <th colspan="5">学生表</th>
        </tr>
        <tr>

            <th>姓名</th>
            <th>年龄</th>
            <th>性别</th>
            <th>邮箱</th>
            <th>操作(<a th:href="@{/student_add}">添加</a> )</th>
        </tr>
        <tr th:each="student : ${list}">
            <td th:text="${student.studentName}"></td>
            <td th:text="${student.age}"></td>
            <td th:text="${student.gender}"></td>
            <td th:text="${student.email}"></td>
            <td>
                <a @click="deletestudent()" th:href="@{|/student_delete/${student.studentId}|}">删除</a>
<!--                <a th:href="@{|/student/${student.id}|}">修改</a>-->
            </td>
        </tr>
    </table>
</body>
</html>
